package com.weaver.teams;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class MyInvocationHandler implements InvocationHandler {
    private Object object;
    public MyInvocationHandler(Object o) {
        this.object = o;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("proxy start");
        System.out.println(method.getClass().getPackage()+"."+method.getClass().getName()+"."+method.getName());
//        method.invoke(object, args);
        System.out.println("proxy end");
        return null;
    }
}
